package dyy.zc.computergradeexam;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

public class XuanZeActivity extends AppCompatActivity implements View.OnClickListener {
    private TextView title;
    private TextView tvQuestion;
    private TextView tvAnswerA, tvAnswerB, tvAnswerC, tvAnswerD;
    private TextView tvShowAnswer;
    private LinearLayout llAnswerArea;

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_xuan_ze);

        initView();

        initData();
    }

    private void initView() {

        title = (TextView) findViewById(R.id.top_tv_title);
        tvQuestion = (TextView) findViewById(R.id.tv_question);
        tvAnswerA = (TextView) findViewById(R.id.tv_Answer_A);
        tvAnswerB = (TextView) findViewById(R.id.tv_Answer_B);
        tvAnswerC = (TextView) findViewById(R.id.tv_Answer_C);
        tvAnswerD = (TextView) findViewById(R.id.tv_Answer_D);

        tvShowAnswer = (TextView) findViewById(R.id.tv_ShowAnswer);
        llAnswerArea = (LinearLayout) findViewById(R.id.ll_AnswerArea);

        title.setText("查看题目");

        tvShowAnswer.setOnClickListener(this);
    }

    private void initData() {

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.tv_ShowAnswer:
                llAnswerArea.setVisibility(View.VISIBLE);
                break;
        }
    }
}
